package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class ConstraintCharacteristics {

    private int beginIndex;
    private int endIndex;
    private ConstraintCheckTime constraintCheckTime;
    private boolean not;
    private boolean deferrable;

    public ConstraintCharacteristics(int beginIndex,
                                     int endIndex,
                                     ConstraintCheckTime constraintCheckTime,
                                     boolean not,
                                     boolean deferrable) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.constraintCheckTime = constraintCheckTime;
        this.not = not;
        this.deferrable = deferrable;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public ConstraintCheckTime getConstraintCheckTime() {
        return constraintCheckTime;
    }

    public boolean isNot() {
        return not;
    }

    public boolean isDeferrable() {
        return deferrable;
    }

}
